home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000010_fdc@columbia.edu_Mon Nov 24 15:36:58 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Can Kermit check for or set a timeout condition
Date: 24 Nov 2003 20:31:18 GMT
Organization: Columbia University
Lines: 26
Message-ID: <slrnbs4qkm.2c9.fdc@sesame.cc.columbia.edu>
References: <f0bb0f39.0311241203.2285bc44@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1069705878 8545 128.59.59.56 (24 Nov 2003 20:31:18 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 24 Nov 2003 20:31:18 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14686
In article <f0bb0f39.0311241203.2285bc44@posting.google.com>,
newexpectuser wrote:
: I am using Kermit from Linux and I am doing ssh.
:
: I want someway to check if the server I am connecting to is down,
: instead of hanging my script in an endless loop.
:
: Is there a way to check for this condition or tell Kermit after a
: certain amount of time, if it doesn't connect to quit ?
:
For making SSH connections, C-Kermit just starts up the external
ssh client, so in this case it's the ssh client and not Kermit that's
taking forever.
You might be able to alleviate this with something like:
ping <hostname>
if failure (stop or exit)
set host /pty ....
But that only tells you if the host is up and reachable, not if an SSH
server is running. In general you can't tell in advance whether a
particular connection can be made. The only way to tell for sure is to
try to make it.
- Frank